package com.antu.first.dto;

import com.antu.first.bean.User;
import com.antu.first.enums.UserStateEnum;

import java.util.List;

/**
 * Created by Administrator on 2018/3/13 0013.
 */
public class UserOperationExecution {

    private int state;

    private String stateInfo;

    private User user;

    private List<User> users;

    private int count;

    public UserOperationExecution(UserStateEnum stateEnum) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    public UserOperationExecution(UserStateEnum stateEnum, User user) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.user = user;
    }

    public UserOperationExecution(UserStateEnum stateEnum, List<User> users) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.users = users;
    }

    public int getState() {

        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
